/*
 * cipher_typedef.h
 *
 * 本头文件包含了密码学模块所需的定义，包括结构体、算法模式等
 *
 *  Created on: 2015-5-25
 *      Author: Xidian
 */

#ifndef CIPHER_TYPEDEF_H_
#define CIPHER_TYPEDEF_H_

#ifdef __cplusplus
extern "C" {
#endif

/* 带有数据长度数据块定义 */
typedef struct dataBlock {
    UINT32 dataLength;
    BYTE * data;
} DataBlock;

typedef struct cipherDataBlock {
	UINT32 dataLength;
	UINT32 plainDataLength;
	BYTE * data;
} CipherDataBlock;

void freeDataBlock(DataBlock * pDataBlock);
void freeCipherDataBlock(CipherDataBlock * pCipherDataBlock);


#ifdef __cplusplus
}
#endif

#endif /* CIPHER_TYPEDEF_H_ */
